$mainColor: #4765FB;
$transitionTime: 0.5s;

// 注册盒子样式
.register-box {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

    // 注册表单样式
    .register-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 600px;

        :nth-child(n) {
            margin-bottom: 24px;
        }

        .input {
            display: flex;
            flex-direction: column;
            width: 70%;
            margin: 0;

            label {
                margin: 0;
                margin-bottom: 12px;
            }
        }

        // 输入框样式
        input {
            width: calc(100% - 20px);
            height: 50px;
            padding: 0px 10px;
            font-size: 20px;
            border: 1px solid gainsboro;
            border-radius: 6px;
            transition: border $transitionTime;

            &:focus {
                border: 1px solid $mainColor;
            }
        }

        // 获取验证码块样式
        .register-code-pane {
            display: flex;
            position: relative;
            width: calc(100% + 12px);

            // 验证码输入框样式
            .register-code {
                width: calc(100% - 120px);
                padding-right: 100px;
            }

            // 验证码按钮样式
            .register-code-button {
                display: block;
                position: absolute;
                right: 10px;
                width: 120px;
                background-color: transparent;
                border: none;
                cursor: pointer;
                transition: color $transitionTime;

                &:hover {
                    color: $mainColor;
                }

                &:disabled {
                    color: rgb(200, 200, 200);
                    cursor: not-allowed;
                }
            }
        }

        // 注册按钮样式
        .register-button {
            padding: 0;
            width: 70%;
            color: white;
            background-color: $mainColor;
            border: 1px solid $mainColor;
            cursor: pointer;
            transition: opacity $transitionTime;

            &:hover {
                opacity: 0.8;
            }
        }
    }
}